//
//  ModifyUserProfile.m
//  collection
//
//  Created by Jing on 4/23/12.
//  Copyright (c) 2012 Tsinghua University. All rights reserved.
//

#import "ModifyUserProfile.h"

@implementation ModifyUserProfile

- (void)initParams {
    
    self.descriptionName = @"user.modifyprofile";
    
    ModifyUserProfileRequestData* requestData = [[ModifyUserProfileRequestData alloc] init];
    self.request = requestData;
    [requestData release];
    
    Response* response = [[Response alloc] init];
    self.response = response;
    [response release];
}

- (NSString*)buildRequestURL {
    
    ModifyUserProfileRequestData* requestData = (ModifyUserProfileRequestData*)self.request;
    
    NSString* requestContent = [NSString stringWithFormat:@"&uid=%lld&nick=%@&password=%@&birthday=%@&profile=%@",
                                requestData.UID,
                                requestData.nickname,
                                requestData.password,
                                requestData.birthday,
                                requestData.signature];
    
    return requestContent;
}

@end
